﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.Entities;
using Unity.Jobs;

public class LevelUpSystem : JobComponentSystem
{

    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        float Dt = Time.DeltaTime;
        JobHandle jbh = Entities.ForEach(
            (ref LevelComponent level) =>
            {
                level.level += Dt * 10;
            }).Schedule(inputDeps);

        return jbh;
    }
}
